package com;

import com.util.CodeMsg;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import java.io.IOException;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Properties;

/**
 * Filename:    CodeMessageProperties
 * Description:
 * Copyright:   Copyright (c) 2018-2019 All Rights Reserved.
 * Company:     chinasofti.com Inc.
 *
 * @author: mazheng
 * @version: 1.0
 * Create at:   2022-08-19
 * <p>
 * Modification History:
 * Date         Author      Version     Description        tag
 * ------------------------------------------------------------------
 * 2022-08-19      mazheng      1.0         1.0 Version        new
 *
 */
public class CodeMessageProperties {

    @PostConstruct
    public void getPropInit() {
        Properties prop = new Properties();
        try {
            prop.load(CodeMessageProperties.class.getClassLoader().getResourceAsStream("codemessage.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
        CodeMsg.messageprop = prop;
    }
}
